﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<div id="SearchForm">
    <% using (Html.BeginForm("Search", "Glass", FormMethod.Get))
       { %>

    <ul>
        <li>
            <%: Html.ActionLink("首页", "Index", "Glass") %>&nbsp;&nbsp
            <%: Html.ActionLink("管理入口", "Index", "Manager") %>
        </li>
        <li id="keyword">
            <label for="keyword">
                关键字：</label>
            <input type="text" name="keyword" value="<%: (ViewData.Model as GlassStore.ViewModels.GlassSearchViewModel) == null? "": (ViewData.Model as GlassStore.ViewModels.GlassSearchViewModel).Keyword %>" onfocus="this.select();" />
        </li>
        <li id="price">
            <label for="price">价&nbsp;&nbsp;&nbsp;&nbsp;格：</label>
            <span>
                <input id="price1" type="text" name="price1" value="<%: (ViewData.Model as GlassStore.ViewModels.GlassSearchViewModel) == null? "0": (ViewData.Model as GlassStore.ViewModels.GlassSearchViewModel).Price1 %>" />
                -
                <input id="price2" type="text" name="price2" value="<%: (ViewData.Model as GlassStore.ViewModels.GlassSearchViewModel) == null? "1000": (ViewData.Model as GlassStore.ViewModels.GlassSearchViewModel).Price2 %>" />
            </span>
        </li>
        <li>
            <input type="submit" value="搜索店内宝贝" />
        </li>
        <li>
        </li>
    </ul>
    <% } %>
</div>
